//
//  JPTimeTypeLayout.m
//  用户信息设置
//
//  Created by 周述坚 on 16/11/16.
//  Copyright © 2016年 周述坚. All rights reserved.
//

#import "JPTimeTypeLayout.h"

@implementation JPTimeTypeLayout

- (void)prepareLayout{
    [super prepareLayout];
    
    // 计算得到宽度,
    CGFloat timeWidth = self.collectionView.bounds.size.width * 0.12;
    CGFloat timeheight = timeWidth;
    
    self.itemSize = CGSizeMake(timeWidth, timeheight);
    
    // 设置单元格之间的间距
    self.minimumInteritemSpacing = 1;
    self.minimumLineSpacing = 1;
    self.sectionInset = UIEdgeInsetsMake(2, 2, 2, 2);
    

    

}

@end
